package com.orm;

import java.util.List;

/**
 * Created by lirance on 16/4/6.
 */
public class GetServiceCallsService extends Service{

    @Override
    public List<Entity> getAllEntities() {
        return getAllDao().getServiceCallDao().getAllEntities();

    }
    public List getEntitiesbyuID(int id) {
        return getAllDao().getServiceCallDao().getServiceCAllByuId(id);
    }


    public List getEntitiesbywsID(int id) {
        return getAllDao().getServiceCallDao().getServiceCAllBywsId(id);
    }
    public List getEntitiesbyuwID(int uid,int wid) {
        return getAllDao().getServiceCallDao().getServiceCAllByuwId(uid,wid);
    }

    @Override


    public void insert(Entity entityRef) {
        getAllDao().getUserDao().insert((UserEntity) entityRef);

    }

    public void delete(Entity entity) {
        getAllDao().getUserDao().delete((UserEntity) entity);
    }

    public void update(Entity entity) {
        getAllDao().getUserDao().update((UserEntity) entity);
    }
}
